# Makefile for the Metafont window support library.

kpse_include ../make/common.mk
kpse_include ../make/library.mk
kpse_include kpathsea.mk

x_cppflags = @X_CFLAGS@
library = window

# Extra library-specific compiler options.
prog_cflags = -I.. -I$(srcdir)/.. $(x_cppflags)

objects = amiga.o epsf.o hp2627.o mftalk.o next.o regis.o suntools.o tek.o \
trap.o uniterm.o win32.o x11.o 

default all: $(library).a
$(library).a: $(objects)
	rm -f $@
	$(AR) $(ARFLAGS) $@ $(objects)
	$(RANLIB) $@

# It doesn't matter much what this default is, since if anything was
# enabled configure would hopefully have found it.
x11.c:
	rm -f $@
	$(LN) $(srcdir)/x11-Xt.c $@

Makefile: Makefile.in ../config.status
	cd .. && $(SHELL) config.status

kpse_include ../make/clean.mk

distclean::
	rm -f x11.c

kpse_include ../make/rdepend.mk
kpse_include window/depend.mk
